package com.app.util;

import com.app.model.User;
import com.google.gson.Gson;

public class UtilGson {
	
	private static final Gson gson = new Gson();
	
	public static User fromUser(String json) {
		return gson.fromJson(json, User.class);
	}
	
	public static String toUser(User user) {
		return gson.toJson(user, User.class);
	}

}
